body {
  box-sizing: border-box;
  font-family: PingFangSC-Medium, sans-serif;
  font-size: $sNormal;
  font-weight: normal;
  line-height: $lhModerate;
  color: $dark2;
}

body,
view,
textarea,
input,
navigator {
  box-sizing: border-box;
}

input,
textarea {
  padding: 0 8px;
  font-size: $sNormal;
  font-size: $sNormal;
  vertical-align: middle;
  border-radius: $radiusMiddle;
}

button,
.button-hover[type=primary] {
  font-size: $sNormal;
  color: #ffffff;
  background-color: $primary1;
  border: none;
  border-radius: $radiusMiddle;

  &::after {
    border: none;
  }

  &:active:not([disabled]) {
    transform: scale(0.99);
  }
}

navigator {
  display: inline-block;
}

/* 默认placeholder样式 */
.input-placeholder,
.textarea-placeholder {
  font-size: $sSmall;
  color: $dark4;
}

.h3 {
  font-size: 32rpx;
  font-weight: bold;
  color: $dark1;
}

.small {
  font-size: $sSmall;
}

.mini {
  font-size: $sMini;
}

.strong {
  font-weight: bold;
}

.center {
  margin: auto;
  text-align: center;
}

.fix-screen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.2);

  .content {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 10px;
    background-color: #ffffff;
    transform: translate(-50%, -50%);
  }
}

/* 富文本，换行规则 */
.rich-text {
  font-size: $sSmall;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* 上下旋转强调动画 */
@keyframes shake {
  0% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(-10deg);
  }
}

/* 按键尺寸 */
.u-btn.u-size-small {
  padding: 10px;
  font-size: $sSmall;
}

/* 按键禁止样式 */
.u-btn.u-btn--primary--disabled,
button[disabled][type=primary] {
  background-color: rgba(103, 131, 241, 0.623) !important;
}
